Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  Add  a  Total  Row  to  an  Excel  Spreadsheet  

 Content of Add a Total Row to an Excel Spreadsheet.js
MD5 Hash: 4A59ACD8ACDDE89348E8E0AAA8F32F05
arrvalues = new Array(1,5,7,9,11,13,15,17);

var objexcel = new ActiveXObject("excel.application");
objexcel.visible = true;
objexcel.workbooks.add;

i = 1;

var myJS_Enumerator_1 = new Enumerator(arrvalues);
for (;!myJS_Enumerator_1.atEnd();myJS_Enumerator_1.moveNext()) {
intvalue = myJS_Enumerator_1.item();
objexcel.cells(i, 1).value = intvalue;
i = i + 1;
}
isum = i-1;
objexcel.cells(i, 1).formula = "=SUM(A1:A" + isum + ")";



   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a